package cn.myzqu.sign.project.client;

import cn.myzqu.sign.common.response.ResultData;
import cn.myzqu.sign.project.common.input.ProjectStaffInput;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@FeignClient(name = "project")
@RequestMapping("/project/staff")
public interface ProjectStaffClient {

    @PostMapping("/info")
    ResultData apply(@RequestBody ProjectStaffInput projectStaffInput) throws Exception;


    @PostMapping("/search")
    ResultData search(@RequestBody Map params);
}
